package com.seanzx.common;

public class Pair <T, E>{
    private T left;
    private E right;
    private Pair() {

    }

    public static<T, E> Pair<T, E> of(T t, E e) {
        Pair<T, E> pair = new Pair<>();
        pair.left = t;
        pair.right = e;
        return pair;
    }

    public T left() {
        return left;
    }

    public E right() {
        return right;
    }
}
